import 'package:flutter/material.dart';
import 'package:mandoby/core/utils/app_colors.dart';


ThemeData get theme => ThemeHelper().themeData();

/// Helper class for managing themes and colors.

class ThemeHelper {
  /// Returns the current theme data.
  ThemeData _getThemeData() {
    return ThemeData(
      visualDensity: VisualDensity.standard,
      fontFamily: "Cairo",
      colorScheme: ColorSchemes.primaryColorScheme,
      elevatedButtonTheme: ElevatedButtonThemeData(
        style: ElevatedButton.styleFrom(
          backgroundColor: AppColors.primary.withOpacity(0.8),
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(7),
          ),
          visualDensity: const VisualDensity(
            vertical: -4,
            horizontal: -4,
          ),
          padding: EdgeInsets.zero,
        ),
      ),
      dividerTheme: DividerThemeData(
        thickness: 4,
        space: 4,
        color: AppColors.primary.withOpacity(0.8),
      ),
    );
  }

  /// Returns the current theme data.
  ThemeData themeData() => _getThemeData();
}

/// Class containing the supported color schemes.
class ColorSchemes {
  static const primaryColorScheme = ColorScheme.light(
    primary: Color(0XFF023AAA),
  );
}
